DELETE
FROM c1_role
WHERE FLAG_CODE = :flagCode AND FLAG_OBJECT_CODE <> :flagObjectCode